﻿
using Scrips.PlayerData;
using UnityEngine;

namespace Scrips.CharacterBehavior
{
    /// <summary>
    /// 右走
    /// </summary>
    public class WalkRight: PlayerBaseMode
    {
        public void WalkRightMode()
        {
            PlayerCurrentStateType = PlayerState.WalkRight;
        }
        public override void Begin(object[] mParams)
        {
            WalkRightMode();
            base.Begin(mParams);
        }

        public override void Update()
        {
            mPlayer.rigidbody.AddForce(new Vector3(3,0,0));
        }

        public override void End()
        {
            base.End();
        }

      
    }

  
}